<template>
	<view>
		
		
		<uni-list>
			
			<uni-list-item v-for="item in lists" :title="item.remark" :show-arrow="false" :note="item.create_time">
				<template v-slot:right="">
					<text style="color: red;font-size: 24rpx;">{{'+' + item.points}}</text>
				</template>
			</uni-list-item>
 			
		</uni-list>
		
		
		<empty v-if="lists.length == 0">还没有积分记录</empty>
		
	</view>
</template>

<script>
	
	
	import uniList from '@/components/uni-list/uni-list.vue';
	import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
	import empty from '@/components/empty2';
	
	
	export default {
		
		components: { uniListItem, uniList, empty },
		
		
		data() {
			return {
				lists: []
			};
		},
		onLoad() {
			this.loadData()
		},
		methods: {
			loadData() {
			  this.$http.post('/shop.member/points', {}).then(res => {
			    this.lists = res.data.data;
			  });
			}
		},
	}
</script>

<style lang="scss">

</style>
